enum OsnMuteRange: Int {
    case all = 0
    case members
    case you
    
    init(rawValue: Int) {
        switch rawValue {
        case 0: self = .all
        case 1: self = .members
        case 2: self = .you
        default: self = .all
        }
    }
}
enum OsnJoinType: String {
    case free = "free"
    case member = "member"
    case admin = "admin"
    case verify = "verify"
    case password = "password"
    
    init(rawValue: String) {
        switch rawValue {
        case "free": self = .free
        case "member": self = .member
        case "admin": self = .admin
        case "verify": self = .verify
        case "password": self = .password
        default: self = .free
        }
    }
}
class DMCCGroup {
    var id: Int64 = 0
    var isNull = false
    var groupId = ""
    var owner = ""
    var name = ""
    @objc var alias = ""
    var portrait = ""
    var isMember = "yes"
    var type = 0
    var passType = 0
    var joinType = OsnJoinType.free
    var joinPwd = ""
    var memberCount = 0
    var maxMemberCount = 200
    var mute = 0
    var muteRange = OsnMuteRange.all
    var singleMute = 0
    var showAlias = false
    var isAdmin = false
    var fav = true
    var extra = ""
    var attribute = ""
    var billboard = ""
    var timestamp: Int64 = 0
    var uiData:Any = ""
    var isSelect = Bool()
}
